#coding:utf-8
import urllib.parse
url = 'http://www.baidu.com'
new_path= urllib.parse.urljoin(url, 'index.html')
print(new_path)
'''
把访问的具体路径与根域名连在一起
'''